mylibc.a:mystring.o
	ar rc $@ $^

mystring.o:mystring.c
	gcc -c $<

.PHONY:output
output:
	mkdir -p lib/include
	mkdir -p lib/mylib
	mv *.h lib/include
	mv *.a lib/mylib
	tar czf tar.tgz lib

.PHONY:del
del:
	rm -f mylibc.a mystring.o tar.tgz
